﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace NewProject.Models
{
    public class Review
    {
       [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int ReviewID { get; set; }
       public int UserID { get; set; }
       public int PostID { get; set; }
       public string UserName { get; set; }
        public string ReviewText { get; set; }
       public int Rating { get; set; }

       [DataType(DataType.Date)]
       [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
       [Display(Name = "Review Date")]
       public DateTime ReviewDate { get; set; }
       public virtual Post Post { get; set; }
    }
}